<!-- c-table -->
<template>
	<el-table :data="data">
		<el-table-column v-for="item in column" v-bind="item" />
	</el-table>
</template>

<script lang="ts" setup>
	import type { ElTableColumn, ElTable } from 'element-plus'
	interface Column extends InstanceType<typeof ElTableColumn> {
		slot?: any
	}
	interface TableProps {
		data: Array<{ [key: string]: any }>
		column: Array<Column>
		table: InstanceType<typeof ElTable>
	}
	const props = defineProps<TableProps>()
</script>
<style lang="scss" scoped></style>
